//数组的拷贝
import java.util.Arrays;
public class solution {
    public static void copyarr(int[]arr,int[]arrNew){
        for (int i = 0; i < arr.length ; i++) {
          arrNew[i]=  arr[i];
        }
    }
    public static void main(String[] args) {
        int[]arr={1,2,3,4,5};
        int[]arrNew=new int[arr.length];
        copyarr(arr,arrNew);
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(arrNew));

    }
}
